package com.webapp.blog.web.dao;

import com.webapp.blog.core.generic.GenericDao;
import com.webapp.blog.web.model.Blog;
import java.util.List;

/**
 * Created by jinglun on 2016/8/9.
 */
public interface BlogMapper extends GenericDao<Blog, Long>{
    //return BlogList
    public List<Blog> showBlogs();

    //showBlog
    public Blog blogdetail(long id);

    //addBlog
    public void addBlog(Blog blog);

    //updateBlog
    public void updateBlog(Blog blog);


    //deleteBlog
    public void deleteBlog(long id);
}
